pp108 : Defining Log Messages for an Activity

Defining Log Messages for an Activity

This topic describes the procedure to define log messages for a business process activity.
  1. Select a starting point and click to open a business process model. The business process model appears in the business process modeler.
  2. Clickthe Business Logging tab. The Log Message Builder appears with a consolidated view of all activities.
  3. Select <specific activity> from the drop-downor expand <specific activity> groupbox in the consolidated view. The activity view of events appears for the selected activity.
  4. Click in the <specific activity> groupbox. An empty grid view with Event, Type, Mode and Message fields appears.
  5. To define the log message, do all of the following:
    1. Select required event for the activity from the Event drop-down.
    2. Select required message severity type for the activity from the Type drop-down. The message severity type can be Debug, Information, Warning, Error, and Fatal. The properties at the Business Process Management Service container takes precedence over the message severity defined here. So, only the level that is given in the Business Process Management Service is used for logging specified in its properties in the Log Settings tab. However, if you want a specific level at this place, do change the log levels at the Business Process Management Service Service also.
    3. Select required mode for the activity from the Mode drop-down. Mode can be either static or dynamic. If you select mode as 'static', you need to provide a log message if you know the exact parameters of the mode and the same is logged. If you do not know the exact parameter of the mode, itis recommended that you select the mode as 'Read from Message'. When you select the mode as 'Read from Message', you must provide an XPath expression and the value of that XPath expression is then logged.
    4. Provide required message for the activity in the Message field. It helps the user when a meaningful message is specified based upon the severity type and the mode that you selected.
  6. Click .
  7. Publish and execute the business process. The log messages are published to the default central log database.

You have successfully defined log messages for an activity. You can now view the logged messages at the default central log database.

Related reference

Business Process Model Properties Interface
Service Container Properties Interface
Business Process Management Service Properties Interface

Related information

Composite Application Logging
Using Logging Service in a Business Process